package cn.thornbird.orgsync.repository;

import cn.thornbird.orgsync.entity.LoginLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface LoginLogRepository
        extends BaseRepository<LoginLog>, JpaRepository<LoginLog, String>, JpaSpecificationExecutor<LoginLog> {

    LoginLog findFirstByUserIdOrderByCreatedAtDesc(String userId);

}
